import request from '@/utils/request'

// 获取菜单
// 查询所有的品牌数据
export const FindAllBrand = () => {
  return request({
    url: 'ztzx-product-server/brand/BrandFindAll',
    method: 'post',
  })
}

// 展示我们的数据
export const brandlist = data => {
  return request({
    method: 'post',
    url: 'ztzx-product-server/brand/list',
    data,
  })
}

// 添加操作
export const brandsave = data => {
  return request({
    method: 'post',
    url: 'ztzx-product-server/brand/save',
    data,
  })
}
//软删除操作

export const branddelete = id => {
  return request({
    method: 'post',
    url: 'ztzx-product-server/brand/delete',
    params: {
      id: id,
    },
  })
}

// 修改
export const branupdate = data => {
  return request({
    method: 'post',
    url: 'ztzx-product-server/brand/update',
    data,
  })
}
